class Innate_Skill_004 < Innate_Skill
  def initialize(actor)
    super(actor)
    @name = '裂石飞环'
    @type = 4
    @description = '攻击全体目标，造成三段伤害，根据自身攻击力等比增加伤害'
    @target_mode = 2
    @icon_name = "Actor-1-s4"
  end
  def use
    super
    actions = make_actions
    action_flow.batch_add_actions(actions)
  end
  def make_actions
    actions = []
    for count in 0..2 do
      action = Action_Bit.new(@actor, 1)
      action.set_detail(107).set_block
      actions.push(action)
      damge_info = make_damge_info(@actor.calc_atk(150))
      for item in $game_troop.enemies
        if not item.dead?
          damage_action = Action_Bit.new(item, 2)
          damage_action.set_detail(damge_info)
          actions.push(damage_action)
        end
      end
    end
    return actions
  end
  def next_level_description
    return "伤害增加"
  end
end
